#define _CRT_SECURE_NO_WARNINGS  1
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

typedef int datatype;

typedef struct hp
{
	datatype* a;
	int capacity;
	int size;
}Hp;

void HpCreat(Hp*hp);

bool HpEmpty(Hp* hp);

int HpSize(Hp* hp);

void HpPush(Hp* hp,datatype x);

void HpPop(Hp* hp);

int HpTop(Hp* hp);

void HpDestroy(Hp* hp);